<div class="title">新用户注册</div>
<div class="side">
	<%= error_messages_for :user %>
	<% form_for(@user , :url => { :action => "reg" }) do |f| %>
		<div id="reg" class="tablediv">
			<div class="tr1 h30">
				<div class="td1 h30">帐号</div>
				<div class="td2 h30"><%= f.text_field :name,:class=>'input1 w200' %></div>
				<div class="td3 h30"></div>
			</div>
			<div class="tr1 h30">
				<div class="td1 h30">密码</div>
				<div class="td2 h30"><%= f.password_field :password,:class=>'input1 w200' %></div>
				<div class="td3 h30"></div>
			</div>
			<div class="tr1 h30">
				<div class="td1 h30">重复密码</div>
				<div class="td2 h30"><%= f.password_field :password_confirmation,:class=>'input1 w200' %></div>
				<div class="td3 h30"></div>
			</div>
			<div class="tr1 h30">
				<div class="td1 h30">E-mail</div>
				<div class="td2 h30"><%= f.text_field :email,:class=>'input1 w200' %></div>
				<div class="td3 h30"></div>
			</div>			
			<div>
				<%= f.submit "提交",:class=>"submit" %>
			</div>	
		</div>
	<% end %>	
</div>